import useRequest from '@/utils/request'

const request = useRequest({})
// 查询登录日志列表
export function list(query: any) {
  return request.get('/system/logininfor/list', {
    params: query,
  })
}

// 删除登录日志
export function delLogininfor(infoId: string) {
  return request.delete('/system/logininfor/' + infoId)
}

// 解锁用户登录状态
export function unlockLogininfor(userName: string) {
  return request.get('/system/logininfor/unlock/' + userName)
}

// 清空登录日志
export function cleanLogininfor() {
  return request.delete('/system/logininfor/clean')
}
